import 'package:finance_app/generated/json/base/json_convert_content.dart';
import 'package:finance_app/generated/json/base/json_field.dart';
import 'package:finance_app/src/entities/business_contact_entity.dart';
import 'package:finance_app/src/entities/expense_detail_entity.dart';
import 'package:finance_app/src/entities/setting_data_entity.dart';

class OcrAttachmentEntity with JsonConvert<OcrAttachmentEntity> {
  @JSONField(name: "data_type")
  String dataType;
  int id;
  @JSONField(name: "is_image")
  int isImage;
  String thumbnail;
  String url;
  @JSONField(name: "ocr_data")
  OcrAttachmentOcrData ocrData;
}

class OcrAttachmentOcrData with JsonConvert<OcrAttachmentOcrData> {
  String type;
  @JSONField(name: "contact_id")
  int contactId;
  @JSONField(name: "business_contact_name")
  String businessContactName;
  String category;
  String currency;
  @JSONField(name: "invoice_number")
  String invoiceNumber;
  List<ExpenseDetailItems> items;
  @JSONField(name: "order_date")
  String orderDate;
  num subtotal;
  @JSONField(name: "tax_amount")
  int taxAmount;
  num total;
  @JSONField(name: "payment_type")
  SettingDataPaymentType paymentType;

  BusinessContactEntity contact;

}


